<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据分析</title>
</head>
<body>
{% extends 'index.html' %}
<div class="layui-container">
    {% block content %}
    <div class="layui-row">
        <div>
<!--            <button id="analysis" onclick="clickl()" >立即分析</button>-->
            <button  id="analysis" onclick="clickl()" class="layui-btn" style="margin-top:5px">立即分析</button>
        </div>
        <div class="layui-col-md6">
            <div >
                <img src="/static/college_data.jpg"/>
                <img src="/static/pass_and_fail.jpg"/>
                <img src="/static/score_data.jpg"/>
            </div>
        </div>
    </div>
    {% endblock %}
</div>
</body>
<script src="../static/jquery-latest.js"></script>
<script type="text/javascript">
{% block js %}
    function clickl() {
        console.log(111);
        $.ajax({
            url:'/analysis/',
            type:'GET',
            contentType: "application/json;charset=UTF-8",//设置请求参数类型为json字符串
            dataType:"json",
            success:function(result){
                alert("分析成功")
                location.reload()
            }
    });
    }
{% endblock %}
</script>
</html>
